package com.zbkj.dal.base.enums;

import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.StrUtil;
import com.zbkj.dal.common.exception.BusinessExceptionAssert;
import com.zbkj.dal.base.result.IResultEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * @ClassName OrderPayResultCode
 * @Description 订单支付结果
 * @Author HZW
 * @Date 2023/3/7 12:20
 * @Version 1.0
 */
@Getter
public enum OrderPayResultCode implements BusinessExceptionAssert {
    /**
     * 订单下单结果装态
     */
    ORDER_RENT_QUOTA_LESS(5005, "承享额度不足"),
    ORDER_USER_CANCEL(5009, "库存不足"),
    ;

    private final Integer code;
    private final String message;

    OrderPayResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public IResultEnum setCode(Integer code) {
        throw new UnsupportedOperationException("UnSupported Modify Code");
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public IResultEnum setMessage(String message) {
        throw new UnsupportedOperationException("UnSupported Modify Message");
    }

    @Override
    public IResultEnum setMsgParams(Object... msgParams) {
        throw new UnsupportedOperationException("UnSupported Modify Message");
    }

    @Override
    public Object[] getMsgParams() {
        return new Object[0];
    }
}
